class AddInsidePositionData < ActiveRecord::Migration
  def self.up
    InsidePosition.delete_all
    InsidePosition.create(:part => "ラジエターサポート", :direction_side => "前方", :metal_index => 1.5, :exchange_index => 1.2)
    InsidePosition.create(:part => "フロントクロスメンバー", :direction_side => "前方", :metal_index => 1.0, :exchange_index => 1.0)
    InsidePosition.create(:part => "フロントアッパーメンバー", :direction_side => "右前方", :metal_index => 1.0, :exchange_index => 2.8)
    InsidePosition.create(:part => "フロントアッパーメンバー", :direction_side => "左前方", :metal_index => 1.0, :exchange_index => 2.8)
    InsidePosition.create(:part => "フロントサイドメンバー", :direction_side => "右前方", :metal_index => 1.5, :exchange_index => 4.5)
    InsidePosition.create(:part => "フロントサイドメンバー", :direction_side => "左前方", :metal_index => 1.5, :exchange_index => 4.5)
    InsidePosition.create(:part => "フロントビラー", :direction_side => "右前方", :metal_index => 1.0, :exchange_index => 8.5)
    InsidePosition.create(:part => "フロントビラー", :direction_side => "左前方", :metal_index => 1.0, :exchange_index => 8.5)
    InsidePosition.create(:part => "センターピラー", :direction_side => "右側面", :metal_index => 1.0, :exchange_index => 8.2)
    InsidePosition.create(:part => "センターピラー", :direction_side => "左側面", :metal_index => 1.0, :exchange_index => 8.2)
    InsidePosition.create(:part => "ルーフサイドパネル", :direction_side => "右側面", :metal_index => 1.0, :exchange_index => 1.0)
    InsidePosition.create(:part => "ルーフサイドパネル", :direction_side => "左側面", :metal_index => 1.0, :exchange_index => 1.0)
    InsidePosition.create(:part => "リアサイドメンバー", :direction_side => "右後方", :metal_index => 1.5, :exchange_index => 3.1)
    InsidePosition.create(:part => "リアサイドメンバー", :direction_side => "左後方", :metal_index => 1.5, :exchange_index => 3.1)
    InsidePosition.create(:part => "リアフロアパン", :direction_side => "後方", :metal_index => 2.0, :exchange_index => 4.5)
    InsidePosition.create(:part => "リアフロアクロスメンバー", :direction_side => "後方", :metal_index => 1.0, :exchange_index => 3.5)
  end

  def self.down
    InsidePosition.delete_all
  end
end
